import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    redirect: '/enterprise',
    component: () => import('../views/index.vue')
  },
  // 企业
  {
    path: '/enterprise',
    name: 'enterprise',
    component: () => import('../views/enterprise')
  },
  // 人
  {
    path: '/people',
    name: 'people',
    component: () => import('../views/people')
  },
  // 景
  {
    path: '/scenicSpot',
    name: 'scenicSpot',
    component: () => import('../views/scenicSpot')
  },
  // 剧组
  {
    path: '/crew',
    name: 'crew',
    component: () => import('../views/crew')
  }
]
const router = new VueRouter({
  mode: "hash",
  routes
})

export default router
